import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import { GridLayout, GridItem } from "vue-grid-layout";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import api from "./utils/request";
const echarts = require('echarts'); // echarts5.0引入方式
import Chart from './components/Echart/chart.vue';
import Card from './components/Echart/card.vue';
import Ctable from './components/Echart/ctable.vue';
import "./assets/css/index.scss";

Vue.config.productionTip = false;
Vue.component("GridLayout", GridLayout);
Vue.component("GridItem", GridItem);
Vue.component("Chart", Chart);
Vue.component("Card", Card);
Vue.component("Ctable", Ctable);
Vue.prototype.$api = api;
Vue.prototype.$echarts = echarts;
Vue.use(ElementUI);
new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");
